﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Interface
{

    public class RE_ReqDTO_Order
    {
        /// <summary>
        ///ID
        /// </summary>
        public string RowId { get; set; }
        /// <summary>
        ///电商平台
        /// </summary>
        public string platform { get; set; }
        /// <summary>
        ///自动分仓:0无,1自动分仓
        /// </summary>
        public string allocated_auto { get; set; }
        /// <summary>
        ///配送仓库，参考getWarehouse。配置(checkCustomerWarehouseIsCloud)开启必传
        /// </summary>
        public string warehouse_code { get; set; }
        /// <summary>
        ///配送方式，参考getShippingMethod。如果配置了(CPCAINIAO),该值就只能传配置的（CPSHIPPINGMETHOD）
        /// </summary>
        public string shipping_method { get; set; }
        /// <summary>
        ///订单参考号(建议使用平台单号)	
        /// </summary>
        public string reference_no { get; set; }
        /// <summary>
        ///订单参考号(建议使用平台单号)	
        /// </summary>
        public string reference_no_before { get; set; }
        /// <summary>
        ///平台订单号(例如速卖通平台订单号)
        /// </summary>
        public string aliexpress_order_no { get; set; }
        /// <summary>
        ///订单说明
        /// </summary>
        public string order_desc { get; set; }
        /// <summary>
        ///操作员留言-同步WMS订单备注中	
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        ///保税:订单模式(bbc/b2c)
        /// </summary>
        public string order_business_type { get; set; }
        /// <summary>
        ///收件人国家，参考getCountry
        /// </summary>
        public string country_code { get; set; }
        /// <summary>
        ///省/州/府
        /// </summary>
        public string province { get; set; }
        /// <summary>
        ///城市/区
        /// </summary>
        public string city { get; set; }
        /// <summary>
        ///收件人区
        /// </summary>
        public string district { get; set; }
        /// <summary>
        ///地址1 (length:30)
        /// </summary>
        public string address1 { get; set; }
        /// <summary>
        ///地址2 (length:30)
        /// </summary>
        public string address2 { get; set; }
        /// <summary>
        ///地址3 (length:30)
        /// </summary>
        public string address3 { get; set; }
        /// <summary>
        ///邮编；收件人国家为菲律宾，邮编非必填
        /// </summary>
        public string zipcode { get; set; }
        /// <summary>
        ///收件人证件号
        /// </summary>
        public string license { get; set; }
        /// <summary>
        ///门牌号
        /// </summary>
        public string doorplate { get; set; }
        /// <summary>
        ///公司名
        /// </summary>
        public string company { get; set; }
        /// <summary>
        ///收件人姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        ///收件人联系方式
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        ///收件人联系方式2
        /// </summary>
        public string cell_phone { get; set; }
        /// <summary>
        ///收件人电话分机
        /// </summary>
        public string phone_extension { get; set; }
        /// <summary>
        ///收件人邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        ///平台店铺
        /// </summary>
        public string platform_shop { get; set; }
        /// <summary>
        ///COD订单：0:否 1:是。配置（IS_SHOW_ORDER_COD_PRICE）开启必传1
        /// </summary>
        public string is_order_cod { get; set; }
        /// <summary>
        ///COD Value。配置（IS_SHOW_ORDER_COD_PRICE）开启必传
        /// </summary>
        public string order_cod_price { get; set; }
        /// <summary>
        ///币种
        /// </summary>
        public string order_cod_currency { get; set; }
        /// <summary>
        ///签名服务: 0:否 1:是
        /// </summary>
        public string is_signature { get; set; }
        /// <summary>
        ///保险服务: 0:否 1:是
        /// </summary>
        public string is_insurance { get; set; }
        /// <summary>
        ///投保金额，默认：美元
        /// </summary>
        public string insurance_value { get; set; }
        /// <summary>
        ///渠道编码
        /// </summary>
        public string channel_code { get; set; }
        /// <summary>
        ///配送指定日期；例如2021-01-01
        /// </summary>
        public string assign_date { get; set; }
        /// <summary>
        ///配送指定时间；"00"：无指定； "01"：午前中 ；"12"：12時~14時 ；"14"：14時~16時 ；"16"：16時~18時 ；"18"：18時~20時 ；"19"：19時~21時 ；"04"：18時~21時
        /// </summary>
        public string assign_time { get; set; }

        /// <summary>
        ///请求返回信息
        /// </summary>
        public string ResultMsg { get; set; }
        /// <summary>
        ///是否审核,0新建不审核(草稿状态)，1新建并审核， 默认为0， 审核通过之后，不可编辑
        /// </summary>
        public string verify { get; set; }

        /// <summary>
        ///明细信息
        /// </summary>
        public List<Items> items { get; set; }

        public class Items
        {
            /// <summary>
            ///SKU
            /// </summary>
            public string product_sku { get; set; }
            /// <summary>
            ///自定义编码
            /// </summary>
            public string reference_no { get; set; }
            /// <summary>
            ///中文申报名称
            /// </summary>
            public string product_name { get; set; }
            /// <summary>
            ///英文申报名称
            /// </summary>
            public string product_name_en { get; set; }
            /// <summary>
            ///申报价值
            /// </summary>
            public string product_declared_value { get; set; }
            /// <summary>
            ///数量
            /// </summary>
            public int quantity { get; set; }
            /// <summary>
            ///eBay交易号，选填(Edis物流必填)
            /// </summary>
            public string ref_tnx { get; set; }
            /// <summary>
            ///eBay物品号，选填(Edis物流必填，平台编码和ebay物品号都往此字段传值)
            /// </summary>
            public string ref_item_id { get; set; }
            /// <summary>
            ///eBay买家ID，选填(Edis物流必填)
            /// </summary>
            public string ref_buyer_id { get; set; }
            /// <summary>
            ///已税标识:选填(I_TAXED 表示跨境已税，U_TAXED 表示海外仓已税)
            /// </summary>
            public string already_taxed { get; set; }
            /// <summary>
            ///子单号，单据编码(temu半托管平台传订单O单号)
            /// </summary>
            public string child_order_id { get; set; }
        }

        /// <summary>
        ///附件列表
        /// </summary>
        public List<Attach> attach { get; set; }

  

        public class Attach
        {

            /// <summary>
            ///文件类型pdf,rar,zip
            /// </summary>
            public string file_type { get; set; }
            /// <summary>
            ///公共上传接口返回的主键
            /// </summary>
            public string attach_id { get; set; }
        }

        /// <summary>
        ///附件列表
        /// </summary>
        public Label label { get; set; }

        public class Label
        {

            /// <summary>
            ///普通类型(pdf/png/gif/jpg/jpeg)  特殊类型(cainiao/html)  erp新增(url)
            /// </summary>
            public string file_type { get; set; }
            /// <summary>
            ///尺寸(格式如100x100，以小写x字母分隔)
            /// </summary>
            public string file_size { get; set; }
            /// <summary>
            ///base64编码 / 数组 (多个标签: 数组格式[base64编码, ..])
            /// </summary>
            public List<string>  file_data { get; set; }
            /// <summary>
            ///名称 / 数组 (多个标签: 数组格式[名称1,名称2 ..])
            /// </summary>
            public List<string> file_name { get; set; }
         
        }
    }
}
